/*
 * @Author: zsc
 * @Date: 2022-06-14 21:38:31
 * @LastEditors: zsc
 * @LastEditTime: 2022-07-24 19:13:19
 * @Description: 房间列表
 */

import request from '@/utils/request'
/**
 * 房间管理列表接口
 * @param data
 * @returns {*}
 */
export function roomGetList(data) {
  return request({
    url: '/api/adminBuildingRoom/index',
    method: 'post',
    data
  })
}
/**
 * 房间管理详情
 * @param {*} id
 * @returns
 */
export function roomGet(id) {
  const data = { id: id }
  return request({
    url: '/api/adminBuildingRoom/view',
    method: 'post',
    data
  })
}
/**
 * 房间新增
 * @param {*} data
 * @returns
 */
export function roomCreate(data) {
  return request({
    url: '/api/adminBuildingRoom/create',
    method: 'post',
    data
  })
}
/**
 * 房间新增
 * @param {*} data
 * @returns
 */
export function roomBlukCreate(data) {
  return request({
    url: '/api/adminBuildingRoom/blukCreate',
    method: 'post',
    data
  })
}
/**
 * 房间修改
 * @param {*} data
 * @returns
 */
export function roomUpdate(data) {
  return request({
    url: '/api/adminBuildingRoom/update',
    method: 'post',
    data
  })
}
/**
 * 房间删除
 * @param {*} id
 * @returns
 */
export function roomDel(id) {
  const data = { id: id }
  return request({
    url: '/api/adminBuildingRoom/delete',
    method: 'post',
    data
  })
}
/**
 * 房间选择
 * @param {*} data
 * @returns
 */
export function roomColumn(data) {
  return request({
    url: '/api/adminBuildingRoom/column',
    method: 'post',
    data
  })
}
